
{% block field_row %}
{% spaceless %}
    <div class="clearfix">
        {{ form_label(form) }}
        {{ form_errors(form) }}
        <div class="input">{{ form_widget(form) }}</div>
    </div>
{% endspaceless %}
{% endblock field_row %}

{% block integer_widget %}
    {% set type = type|default('text') %}
    {% set attr = {'class': 'validate[custom[integer]]'} %}
    {{ block('field_widget') }}
{% endblock integer_widget %}
    
{% block number_widget %}
    {% set type = type|default('text') %}
    {% set attr = {'class': 'validate[custom[number]]'} %}
    {{ block('field_widget') }}
{% endblock number_widget %}

{% block email_widget %}
    {% set type = type|default('text') %}
    {% set attr = {'class': 'validate[custom[email]]'} %}
    {{ block('field_widget') }}
{% endblock email_widget %}